<?php

class MessageDao extends BaseDao {
	
	public function __construct($dsn, $username, $password) {
		parent::__construct($dsn, $username, $password);
			
		$this->mapping = new Mapping("MessageModel", "t_message", array("id"),
		array(
			"id",
			"date",
			"isAlert",
			"isRead",
			"message",
			"subject",
			"user_id",
			"sendBySite"
		),
		array(
			"id",
			"date",
			"isAlert",
			"isRead",
			"message",
			"subject",
			"user_id",
			"sendBySite"
		));
	}
}
?>